<?php
	$productid=$_GET['productid'];
	$optionid=$_GET['optionid'];
	loadClass('product');
	loadClass('option');
	$obj=new Product();
	$obj->loadByKey($productid);
	$option=new Option();
	$data=$option->getArrChild($optionid);
?>
                    <table width="100%" cellpadding="2" cellspacing="2">
                        <TR>
                          <TD bgColor="#241209" width="50%"><span class="news_detail_tieude"><strong><?php echo $obj->ProductName?></strong></span></TD>
                          <TD bgColor="#241209" width="50%"><DIV align="center" class="news_detail_tieude"></DIV></TD>
                        </TR>
<?php
	foreach($data as $item)
	{
?>
                        <TR>
                          <TD bgColor="#241209" colSpan="2"><DIV align="left" class="main_news_tieude"><strong>A. <?php echo $item['Option']?></strong></DIV></TD>
                        </TR>
<?php
		$child=$option->getArrChild($item['OptionID']);
		foreach($child as $val)
		{
?>
                        <TR>
                          <TD bgcolor="#333333"><DIV align="left"><?php echo $val['Option']?></DIV></TD>
                          <TD bgcolor="#333333"><DIV align="center"><?php echo $obj->getValue($val['OptionID'],$lang)?></DIV></TD>
                        </TR>

<?php
		}
	}
?>
                        
                        </table>